<? 
	require("required/dbconnect.php");
	
	$get=mysql_query("select * from os_products");	
	
	while($a=mysql_fetch_array($get,MYSQL_ASSOC))
	{
		$product_name=$a['product_name_eng'];
		$clean_url=str_replace(" ","-",$product_name);
		$id=$a['id'];
		
		$query = "update os_products set clean_url='$clean_url' where id=$id";
		echo $query."<br>";
		mysql_query($query)or die(mysql_error());
	}
		
?>

